﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebAsbesto.CDC
{
    public partial class CDC : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["User"] != "1")
                Response.Redirect("../Login/Login.aspx");
            else if (Session["User"] == "1")
            {
                //PAGE LOAD ACA!
                if (!IsPostBack)
                {
                    Grd_Datos_CDC.Visible = false;
                }
            }
        }

        protected void btn_Buscar_Click(object sender, EventArgs e)
        {
            Grd_Datos_CDC.Visible = true;
        }

        protected void btn_Ingresar_Nuevo_Cliente_Click(object sender, EventArgs e)
        {
            Page.Response.Redirect("CDCAdd.aspx");
        }
    }
}